Skip to content

Ench/spellbook gaps#3

Merged
gustavobftorres merged 3 commits intomainfrom
ench/spellbook-gaps
Mar 20, 2026
Merged

Ench/spellbook gaps#3
gustavobftorres merged 3 commits intomainfrom
ench/spellbook-gaps

Conversation

@gustavobftorres
Copy link
Copy Markdown
Collaborator

PR Description

What changed

  • Mapped new Balancer V3 spellbook pieces into dbt connector, while keeping the rule to avoid dex trades dependencies.
  • Removed redundant balancer_ prefix from model aliases across spells/labels, so tables become cleaner (example: dune.balancer.bpt_supply instead of dune.balancer.balancer_bpt_supply).
  • Added missing sources and fixed follow-up runtime issues found during dbt runs (erc20_sonic source and Monad labels symbol handling).
  • Fixed ERC4626 V3 merge-key collisions by widening unique keys to include underlying_token.

Added files

  • macros/shared/balancer/balancer_pools_fees_macro.sql
  • models/_project/balancer/pools/pools_fees/_schema.yml
  • models/_project/balancer/pools/pools_fees/balancer_v3_pools_fees.sql
  • models/_project/balancer/pools/pools_fees/arbitrum/_schema.yml
  • models/_project/balancer/pools/pools_fees/arbitrum/balancer_v3_arbitrum_pools_fees.sql
  • models/_project/balancer/pools/pools_fees/avalanche_c/_schema.yml
  • models/_project/balancer/pools/pools_fees/avalanche_c/balancer_v3_avalanche_c_pools_fees.sql
  • models/_project/balancer/pools/pools_fees/base/_schema.yml
  • models/_project/balancer/pools/pools_fees/base/balancer_v3_base_pools_fees.sql
  • models/_project/balancer/pools/pools_fees/ethereum/_schema.yml
  • models/_project/balancer/pools/pools_fees/ethereum/balancer_v3_ethereum_pools_fees.sql
  • models/_project/balancer/pools/pools_fees/gnosis/_schema.yml
  • models/_project/balancer/pools/pools_fees/gnosis/balancer_v3_gnosis_pools_fees.sql
  • models/_project/balancer/pools/pools_fees/hyperevm/_schema.yml
  • models/_project/balancer/pools/pools_fees/hyperevm/balancer_v3_hyperevm_pools_fees.sql
  • models/_project/balancer/pools/pools_fees/monad/_schema.yml
  • models/_project/balancer/pools/pools_fees/monad/balancer_v3_monad_pools_fees.sql
  • models/_project/balancer/erc4626_tokens/sonic/_schema.yml
  • models/_project/balancer/erc4626_tokens/sonic/balancer_v3_sonic_erc4626_token_mapping.sql
  • models/_project/balancer/erc4626_tokens/sonic/balancer_v3_sonic_erc4626_token_prices.sql
  • models/_projects/balancer/labels/avalanche_c/labels_balancer_v3_pools_avalanche_c.sql
  • models/_projects/balancer/labels/hyperevm/labels_balancer_v3_pools_hyperevm.sql
  • models/_projects/balancer/labels/monad/labels_balancer_v3_pools_monad.sql
  • sources/balancer/hyperevm/balancer_hyperevm_sources.yml
  • sources/balancer/monad/balancer_monad_sources.yml
  • sources/balancer/sonic/balancer_sonic_sources.yml

Main modified areas

  • Alias cleanup (balancer_ removal) across existing model SQL files, including labels.
  • models/_projects/balancer/labels/labels_balancer_v3_pools.sql and models/_projects/balancer/labels/_schema.yml updated for new V3 chains.
  • models/_project/balancer/erc4626_tokens/* aggregators and chain schemas updated (including unique key/test update).
  • sources/balancer/avalanche_c/balancer_avalanche_c_sources.yml and sources/balancer_liquidity_extra_sources.yml updated with required source definitions.

@gustavobftorres gustavobftorres merged commit 7de327c into main Mar 20, 2026
@gustavobftorres gustavobftorres deleted the ench/spellbook-gaps branch March 20, 2026 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant